package com.sky.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "CategoryPageQueryDTO", description = "分类分页查询参数")
public class CategoryPageQueryDTO implements Serializable {

    @ApiModelProperty(
            value = "页码",
            example = "1",
            required = true,
            notes = "页码从1开始"
    )
    private int page;

    @ApiModelProperty(
            value = "每页记录数",
            example = "10",
            required = true,
            notes = "建议不超过100"
    )
    private int pageSize;

    @ApiModelProperty(
            value = "分类名称（模糊查询）",
            example = "热菜"
    )
    private String name;

    @ApiModelProperty(
            value = "分类类型",
            example = "1",
            notes = "1: 菜品分类，2: 套餐分类（不传则查询所有类型）"
    )
    private Integer type;
}
